package cn.iocoder.devlop.module.annual.report.pushconf.service;

import cn.iocoder.devlop.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.devlop.module.annual.report.pushconf.dal.PushConfMapper;
import cn.iocoder.devlop.module.annual.report.pushconf.dal.dataobject.PushConfDO;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;
import java.util.List;

/**
 * 推送配置 Service 实现类
 *
 * @author 超级管理员
 */
@Service
@Validated
public class PushConfServiceImpl implements PushConfService {

    @Resource
    private PushConfMapper pushConfMapper;


    @Override
    public List<PushConfDO> getPushConfList(String entclassify) {
        LambdaQueryWrapperX<PushConfDO> wrapperX = new LambdaQueryWrapperX<>();
        wrapperX.eq(PushConfDO::getEntclassify,entclassify);
        return pushConfMapper.selectList(wrapperX);
    }

    @Override
    public List<PushConfDO> getPushConfAll() {
        return pushConfMapper.selectList();
    }
}
